-- GENERATED SPELL FOR [Ilifar] --


function spell0_7734(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7734', 612, 1)
end

function spell1_7734(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7734', 3000, 1)
end

function Sorts_7734(pUnit, Event)
local choix_sorts_7734 = math.random(0, 1)
if choix_sorts_7734 == 0 then
pUnit:RegisterEvent('spell0_7734', 1, 1)
end
if choix_sorts_7734 == 1 then
pUnit:RegisterEvent('spell1_7734', 1, 1)
end
end

function mob7734_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7734', math.random(1500, 3000), 1)
end

function mob7734_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7734_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7734_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7734, 1, 'mob7734_Action')
RegisterUnitEvent(7734, 2, 'mob7734_Leave')
RegisterUnitEvent(7734, 3, 'mob7734_Kill')
RegisterUnitEvent(7734, 4, 'mob7734_Die')
